package com.base.self.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("积分充值表单")
public class PtintegralRecharge {
    @ApiModelProperty("主键id")
    private String id;
    @ApiModelProperty("充值渠道 1.支付宝 2.微信")
    @NotNull(message = "充值渠道不能为空")
    private Integer waypay;
    @ApiModelProperty("商家id")
    @NotEmpty(message = "商家id不能为空")
    private String parentId;
    @ApiModelProperty("用户id")
    @NotEmpty(message = "用户id不能为空")
    private String subId;
    @ApiModelProperty("充值金额")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal money;
    @ApiModelProperty("凭证")
    @NotEmpty(message = "凭证不能为空")
    private String image;
    @ApiModelProperty(value = "用户昵称",hidden = true)
    private String username;
    @ApiModelProperty(value = "用户手机号",hidden = true)
    private String mobile;
    @ApiModelProperty(value = "状态 0审核中 1通过 2拒绝 ",hidden = true)
    private Integer status;
    @ApiModelProperty(value = "审核备注",hidden = true)
    private String remake;
    @ApiModelProperty(value = "是否删除 0否1是",hidden = true)
    private Integer delFlag;
    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "审核时间",hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;
}
